var gulp = require('gulp');
var postcss = require('gulp-postcss');
var pxtoviewport = require('postcss-px-to-viewport');

gulp.task('css', function () {

    var processors = [
        pxtoviewport({
            viewportWidth: 750,
            viewportUnit: 'vw'
        })
    ];

    return gulp.src(['./m/css/*.css'])
        .pipe(postcss(processors))
        .pipe(gulp.dest('./m/style'));
});

gulp.task('watch',function(){
    gulp.watch('./m/css/*.css',gulp.series('css'))
})